Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Teleported Player View Angle

  1. #11
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    Weird that it doesn't work. Perhaps a combination of a angles and viewangles would've worked, but then again face or turn would work either way.

  2. #12

    Default

    why the facing is not working for me?

    local.trig = spawn trigger_multiple
    local.trig targetname spawn1
    local.trig.origin = ( -484 -610 42 ) //e1 corner big room
    local.trig setsize ( -200 -200 0 ) ( 200 200 0 )
    $spawn1 waittill trigger
    local.player = parm.other
    local.player tele ( -206 -871 -135.88 )
    local.player face ( 7.93 135.14 0.00 )
    $spawn1 remove
    wait .1
    thread spawn1

    it doesnt face the direction i pointed to.. also tried the local.player.angles = ( 7.93 135.14 0.00 )

  3. #13

    Default

    PHP Code:
    local.trig spawn trigger_multiple
    local
    .trig targetname spawn1
    local
    .trig.origin = ( -484 -610 42 //e1 corner big room
    local.trig setsize ( -200 -200 0 ) ( 200 200 0 )

    while( 
    )
    {
            
    $spawn1 waittill trigger

            local
    .player parm.other

            local
    .player.origin = ( -206 -871 -135.88 )
            
    local.player.viewangles = ( 7.93 135.14 0.00 )

    angles won't work because it doesn't change the required info to gclient.
    Last edited by Ley0k; November 29th, 2014 at 05:03 PM.

  4. #14

    Default

    pacrac fixed it by making it like this

    Code:
    spawn1:
    	local.trig = spawn trigger_multiple
    	local.trig targetname spawn1
    	local.trig.origin = ( -484 -610 42 ) //e1 corner big room
    	local.trig setsize ( -200 -200 0 ) ( 200 200 0 )
    	$spawn1 waittill trigger
    	local.player = parm.other
    	local.player tele ( -206 -871 -135.88 )
    	wait 0.3
    	local.player face ( 7.93 135.14 0.00 )
    	$spawn1 remove
    	wait .1
    	thread spawn1
    thanks pac

  5. #15

    Default

    Hi Slim,

    I'm using a WHILE loop for my teleports so the script isn't constantly creating and destroying triggers.
    This is an example of one of my teleports in Southern France, try it and see if it works for you:

    Code:
    port1:
    local.fx = spawn script_model model "fx/corona_red.tik" origin ( 1056.04 1950 518.13 ) scale 1.5
    local.trig = spawn trigger_use origin local.fx.origin
    local.trig setsize ( -10 -10 0 ) ( 10 10 70 )
    while(1)
    {
    local.trig waittill trigger
    local.player = parm.other
    local.player tele ( 1422 860 815.12 )
    local.player face ( 0 180 0 )
    local.fx hide
    wait 2
    local.fx show
    }
    end
    This has always worked for me.

  6. #16

    Default

    You're welcome m8

    Not much to change there besides give the player time to spawn after teleport.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •